package main

import (
	"github.com/gin-gonic/gin"
	"go_demo/config"
	"go_demo/controller"
	"go_demo/service"
)

func main() {
	// 初始化gin对象
	r := gin.Default()
	//初始化k8s client
	service.K8s.Init()
	// 初始化路由规则
	controller.Router.InitApiRouter(r)
	// gin启动
	r.Run(config.ListenAddr)

}
